package com.zhouyou.http.model.request;

import com.zhouyou.http.callback.CallBack;
import com.zhouyou.http.exception.ApiException;
import com.zhouyou.http.request.PutRequest;
import io.reactivex.rxjava3.disposables.Disposable;
import org.junit.Test;

import static org.junit.Assert.*;

public class PutRequestTest {

    @Test
    public void execute() {
        PutRequest putRequest = new PutRequest("http://www.baidu.com");
        Disposable disposable = putRequest.execute(new CallBack<String>() {

            @Override
            public void onStart() {

            }

            @Override
            public void onCompleted() {

            }

            @Override
            public void onError(ApiException e) {

            }

            @Override
            public void onSuccess(String s) {

            }
        });
        assertTrue("disposable  is not null? ==", disposable != null);

    }


}